#ifndef MYMATH_H
#define MYMATH_H


#include"Vec4.h"

const float pi = 3.1415926535;
//const double pi = 3.1415926535897932385;



float clamp(float x, float mi, float ma);
Vec4f centerOfGravity(Vec4f v1, Vec4f v2, Vec4f v3, Vec2 p);


template<typename T>
inline T deg2rad(T deg) {
	return deg * pi / 180;
}










#endif // !MYMATH_H

